<?php

namespace Biz\Dictionaries;

/**
 * GenderUtil.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class GenderDict
{
    /**
     * Get all.
     *
     * @return array
     */
    public static function items(): array
    {
        return trans('dict/gender');
    }

    /**
     * Get all keys.
     *
     * @return array
     */
    public static function keys(): array
    {
        $genders = self::items();

        return array_keys($genders);
    }

    /**
     * Get value.
     *
     * @param string $key
     *
     * @return string
     */
    public static function get(string $key): string
    {
        $countries = self::items();

        if (isset($countries[$key])) {
            return $countries[$key];
        }

        return '';
    }
}
